/// 消息接口
pub trait NetSer
{
    fn get_id() -> u16;
    fn get_len() -> u16;
    fn get_check() -> u16;
    fn to_bytes(&self, buf: &[u8]) -> usize;
    fn form_bytes(&self, buf: &[u8]) -> usize;
}
/// 消息协议
pub enum Protocol
{
    TcpBinary,
    TcpJson,
    UdpBinary,
    UdpJson,
    WebSocketBinary,
    WebSocketJson,
}

pub mod server;
pub mod client;
pub mod message;
